package com.baozheyangken.ai_learn.service;

import com.baozheyangken.ai_learn.pojo.entity.Question;
import com.baozheyangken.ai_learn.pojo.entity.QuestionType;

import java.util.List;
import java.util.Map;

public interface QuestionService {
    // 基础CRUD
    int addQuestion(Question question, List<Integer> knowledgeIds);

    int deleteQuestionById(Integer id);

    int updateQuestion(Question question, List<Integer> knowledgeIds);

    List<Question> getAllQuestions(Map<String, Object> params);

    List<QuestionType> getQuestionType();

}